<div ng-controller="LabelCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/item/list">{{'标签'| translate}}</a></li>
        <li class="active">
            {{"List"|translate}}
            <a href="#/label/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
            <!-- <a href="#/item/import" class="sui-btn btn-primary">{{'导入' | translate}}</a> -->
        </li>
        <span class="sui-form sui-form pull-right"> 
        <input type="text" placeholder="{{'keyword'|translate}}" ng-model="keyword">
        <button class="sui-btn btn-primary" type="submit" ng-click="getLabelList(1)">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'标签id'|translate}}</th>
                <th>{{'标签名称'|translate}}</th>
                <th>{{'操作'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in label_list">
                <td>{{list.label_id}}</td>
                <td>{{list.name}}</td>
                <td>
                    <a href="#/label/add?id={{list.label_id}}" class="sui-btn btn-primary">{{'edit'|translate}}</a>
                    <button class="sui-btn btn-danger" ng-click="del(list.label_id)">{{'删除'|translate}}</button>
                </td>
            </tr>
        </tbody>
    </table>

    <!-- 分页start -->
    <pager page-no="{{pageNo}}" page-size="pageSize" total="itemsTotal" get-data="getLabelList(pageNo)"></pager>
    <!-- 分页end -->
</div>